package bsr.basara.autodata.dao;

import bsr.basara.autodata.entity.TableConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author basara
 */
@Component
public interface TableConfigRepository extends JpaRepository<TableConfig, Long> {

    TableConfig findByDevTableAndDataTable(String devTable, String dataTable);

    List<TableConfig> findByDataTable(String dataTable);

}
